pp108 : setApplicationStyle Method

setApplicationStyle Method


This method sets the style specified for the current application.

Syntax


styleID.setApplicationStyle(sName , oAppWindow)

Parameters

Parameter

Description

sName

Required. String that specifies the name of the style that is to be applied for the application.

oAppWindow

Optional. Object that specifies the application window for which the style is to be retrieved. If not specified, then the style is set for the current application.


Return Value


No return value.

Remarks


The application style that is set, is applicable only for the current application or the application specified. However, setting the system style after setting the application style will over-ride the style set for the application.

Example


The following example shows how this method is used.

<!-- style definition -->
<div cordysType="wcp.library.ui.Style" id="style" >
...
</div>
<!-- Method invocation -->
<input type="button" value="Get Classes" onclick="style.setApplicationStyle('cordys', application)">

See Also


style